import requests from "./ajax";

//注册
export const getRegister = (username, password) => {
    return requests({
        url:'/register',
        method:'POST',
        params:{
            username,
            password
        }
    })
}

//登录
export const getLogin = (username, password) => {
    return requests({
        url:'/login',
        method:'POST',
        params:{
            username,
            password
        }
    })
}